package com.springboot.framework.controller.request;

import com.springboot.framework.constant.Regex;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.Date;

/**
 * @Author SWF
 * @Date 2019/6/14 13:54
 **/
@Data
public class SellerInsertRequestBean {
    @NotNull(message = "参数错误")
    private Integer shopId;
    @NotEmpty(message = "参数错误")
    @Pattern(regexp = Regex.REGEX_CHINESE,message = "姓名必须为汉字")
    private String name;
//    @NotNull(message = "参数错误")
//    private Byte sex;
    @NotEmpty(message = "参数错误")
    @Pattern(regexp = Regex.REGEX_MOBILE,message = "手机号码格式不正确")
    private String phone;
    /**
     * 类型，1送水工 2老板
     */
    @NotNull(message = "参数错误")
    private Byte type;
    @NotEmpty(message = "参数错误")
    private String wechatOpenid;
}
